package com.ebupt.migu.common.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @author tz
 */
public final class PropertiesUtil {

    private Properties properties;

    public PropertiesUtil() {
        try {
            InputStream in = PropertiesUtil.class.getClassLoader().getResourceAsStream("param.properties");
            properties = new Properties();
            properties.load(in);
            assert in != null;
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public String getValue(String name){
        return properties.getProperty(name);
    }
}
